from selenium.webdriver.common.by import By

from base.base import Base

class Page(Base):
    yuetai_loc=(By.XPATH,'//*[@id="sidebar"]/ul/li[7]/a')
    def yuetai(self):
        self.click(self.yuetai_loc)

    dingyi_loc=(By.XPATH,'//*[@id="sidebar"]/ul/li[7]/ul/li[1]/a')
    def dingyi(self):
        self.click(self.dingyi_loc)

    luru_loc=(By.XPATH,'//*[@id="baPlatformListtb"]/div[2]/span[1]/a[1]/span/span')
    def luru(self):
        self.click(self.luru_loc)

    daima_loc=(By.XPATH,'//*[@id="platformCode"]')
    def daima(self):
        self.send_keys(self.daima_loc,'123')

    name_loc=(By.XPATH,'//*[@id="platformName"]')
    def name(self):
        self.send_keys(self.name_loc,'aaaa')

    queding_loc=(By.XPATH,'/html/body/div[2]/table/tbody/tr[2]/td[2]/div/table/tbody/tr[3]/td/div/input[1]')
    def queding(self):
        self.click(self.queding_loc)